package com.pine.sunshineelder.elderfood.service;

import java.time.LocalDateTime;
import java.util.Map;

import com.pine.sunshineelder.common.dto.QueryResult;
import com.pine.sunshineelder.common.entity.ElderFoodEntity;
import com.pine.sunshineelder.elderfood.ao.ElderFoodAddAo;
import com.pine.sunshineelder.elderfood.ao.ElderFoodModAo;
/**
 * 
 * @author 黄天静
 *
 */
public interface ElderFoodService {
	/**
	 * 新增老人膳食信息
	 */
	ElderFoodEntity addElderFood(ElderFoodAddAo ao) throws Exception;
	/**
	 * 删除老人膳食信息
	 */
	void deleteElderFood(String id) throws Exception;
	/**
	 * 修改老人膳食信息
	 * @param ao
	 */
	ElderFoodEntity modifyUser(String id,ElderFoodModAo ao) throws Exception;
	/**
	 * 模糊分页查询
	 * @param key 关键字
	 * @param pageno 页码
	 * @param pageSize 每页的东西
	 */
	QueryResult<ElderFoodEntity> queryByKey(String key, Integer pageNo, Integer pageSize) throws Exception;
	
	/**
	    * 通过id查询
	 * 
	 * 
	 */
	 ElderFoodEntity queryById(String id)throws Exception;

}
